﻿using Newtonsoft.Json;
using ZZDingTalkSDK.ZZDingTalkRequest.Common;
using ZZDingTalkSDK.ZZDingTalkResponse;

namespace ZZDingTalkSDK.ZZDingTalkRequest
{
    /// <summary>
    /// 根据单据实例ID查询单据实例详情
    /// </summary>
    public class YidaFormGetFormDataByIdJsonRequest<T> : IZZDRequest<YidaFormGetFormDataByIdJsonResponse<T>>
    {
        /// <summary>
        /// 应用ID
        /// </summary>
        [JsonProperty("appType")]
        public string? AppType { get; set; }

        /// <summary>
        /// 应用秘钥
        /// </summary>
        [JsonProperty("systemToken")]
        public string? SystemToken { get; set; }

        /// <summary>
        /// 登陆人工号
        /// </summary>
        [JsonProperty("userId")]
        public string? UserId { get; set; }

        /// <summary>
        /// 表单ID
        /// </summary>
        [JsonProperty("formInstId")]
        public string? FormInstId { get; set; }

        /// <summary>
        /// 语言，可选值：zh_CN/en_US 默认：zh_CN。
        /// </summary>
        [JsonProperty("language")]
        public string Language { get; set; } = "zh_CN";

        public string GetApiName()
        {
            return "/yida/form/getFormDataById.json";
        }
    }
}